package org.dormi.learn.implA;

import org.dormi.learn.core.ItemSDO;

/**
 * add description here
 *
 * @author : dormi330
 * @version : 1.0
 */
public class ItemSDOImplA implements ItemSDO {

    private Long id;

    private boolean hotel;

    private boolean insurance;

    public ItemSDOImplA(Long id, boolean hotel, boolean insurance) {
        this.id = id;
        this.hotel = hotel;
        this.insurance = insurance;
    }

    public boolean isInsurance() {
        return insurance;
    }

    public void setInsurance(boolean insurance) {
        this.insurance = insurance;
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public boolean isHotel() {
        return hotel;
    }

    @Override
    public void doSomething() {
        System.out.println("haha do nothing");
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setHotel(boolean hotel) {
        this.hotel = hotel;
    }

}
